﻿using System.Collections.Generic;

namespace DotNetNuke.Modules._2DoTasks.Components.Interfaces
{
    public interface IRepository<T, K>
    {
        T Get(K key, params object[] additionalFields);

        List<T> GetAll();

        void Add(T entity);

        void Update(T entity);

        void Delete(T entity);
    }
}